import time,turtle as t
def drawdate(date):#获取日期
    t.pencolor("green")
    for i in date:
        if i == '年':
            t.write('年',font = ("Arial",30,"normal"))
            t.pencolor("blue")
            t.fd(50)
        elif i == "月":
            t.write('月',font = ("Arial",30,"normal"))
            t.pencolor("yellow")
            t.fd(50)
        elif i == "日":
            t.write('日',font = ("Arial",30,"normal"))
            t.pencolor("red")
            t.fd(50)
        elif i == "时":
            t.write('时',font=("Arial",30,"normal"))
            t.pencolor("black")
            t.fd(50)
        elif i == "分":
            t.write('分', font=("Arial", 30, "normal"))
            t.pencolor("red")
            t.fd(50)
        elif i == "秒":
            t.write('秒', font=("Arial", 30, "normal"))
            t.pencolor("red")
            t.fd(50)

print(time.strftime("%Y年%m月%d日 %H时%M分%S",time.gmtime()))
# drawdate(time.strftime("%Y年%m月%d日 %H时%M分%秒",time.gmtime()))


